package com.archgeek.java.biz;

import com.google.common.collect.Lists;

import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;

public class UidCalcTest {


    public static void main(String[] args) {


        List<Integer> uids = Lists.newArrayList(633488,223273314);

        int labelId = 501903;

        for (Integer uid : uids) {
            String sql = "put 'portrait_env_pre:portrait_info_fql','%s','label:f%d','%s'";
            String finalSql =String.format(sql, uid % 150 + 100 + "|" + uid, labelId, 8);
            System.out.println(finalSql);
        }

        for (Integer uid : uids) {
            String sql = "get 'portrait_env_pre:portrait_info_fql','%s','label:f%s'";
            String finalSql =String.format(sql, uid % 150 + 100 + "|" + uid, labelId);
            System.out.println(finalSql);
        }



        System.out.println("2021-04-07 15:58:22".substring(0, 10) + "....");

    }

}
